<section class="scrollable padder-md" data-ng-controller="DriverCarEditController">
    <div class="m-b-md">
        <a href="" class="btn btn-rounded  btn-sm btn-icon btn-default pull-right" data-ng-click="close()">
            <i class="fa fa-reply"></i>
        </a>
        <h3 class="m-b-none text-black">
            <i class="fa fa-edit m-r-sm"></i>
            司机管理-车辆- {{car.no || '新增'}}
        </h3>
    </div>

    <section class="panel panel-default">
        <div class="panel-body">
            <form name="carForm" class="form-horizontal">
                <div class="form-group">
                        <label class="col-md-3 control-label">
                            <span class="mustinput">*</span>
                        车牌：
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" data-ng-model="car.no" required/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        车型：
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" data-ng-model="car.carType" required/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        颜色：
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" data-ng-model="car.color"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        车辆所有人：
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" data-ng-model="car.carOwner"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        车辆注册日期：
                    </label>
                    <div class="col-md-8">
                        <input data-ng-model="car.registerTime" class="input-sm form-control" type="text"
                               data-jss-datetimepicker="yyyy-mm-dd hh:ii" placeholder="车辆注册日期"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        核定人数：
                    </label>
                    <div class="col-md-8">
                        <input type="number" class="form-control" data-ng-model="car.seat"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        检验有效期：
                    </label>
                    <div class="col-md-8">
                        <input data-ng-model="car.nextVerifiedTime" class="input-sm form-control" type="text"
                               data-jss-datetimepicker="yyyy-mm-dd hh:ii" placeholder="检验有效期"/>
                    </div>
                </div>
                <!--<div class="form-group">
                <label class="col-md-3 control-label">
                    <span class="mustinput">*</span>
                    车辆正面:
                </label>
                <div class="col-md-8">
                    <div yg-file-upload data-file-ids="car.carImgUrl1" data-is-img="true"
                         data-width="200" data-height="200" data-file-length="1"
                         data-ng-click="showPic(car.carImgUrl1)">
                    </div>
                </div>
            </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        车辆侧面:
                    </label>
                    <div class="col-md-8">
                        <div yg-file-upload data-file-ids="car.carImgUrl2" data-is-img="true"
                             data-width="200" data-height="200" data-file-length="1"
                             data-ng-click="showPic(car.carImgUrl2)">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        车主身份证(正面):
                    </label>
                    <div class="col-md-8">
                        <div yg-file-upload data-file-ids="car.carOwnerIdentityImgUrl1" data-is-img="true"
                             data-width="200" data-height="200" data-file-length="1"
                             data-ng-click="showPic(car.carOwnerIdentityImgUrl1)">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        车主身份证(反面):
                    </label>
                    <div class="col-md-8">
                        <div yg-file-upload data-file-ids="car.carOwnerIdentityImgUrl2" data-is-img="true"
                             data-width="200" data-height="200" data-file-length="1"
                             data-ng-click="showPic(car.carOwnerIdentityImgUrl2)">
                        </div>
                    </div>
                </div>-->
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        车辆行驶证(正本):
                    </label>
                    <div class="col-md-8">
                        <div yg-file-upload data-file-ids="car.vehicleLicenseImgUrl1" data-is-img="true"
                             data-width="200" data-height="200" data-file-length="1"
                             data-ng-click="showPic(car.vehicleLicenseImgUrl1)">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        车辆行驶证(副本):
                    </label>
                    <div class="col-md-8">
                        <div yg-file-upload data-file-ids="car.vehicleLicenseImgUrl2" data-is-img="true"
                             data-width="200" data-height="200" data-file-length="1"
                             data-ng-click="showPic(car.vehicleLicenseImgUrl2)">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        车辆行驶证(车辆照片):
                    </label>
                    <div class="col-md-8">
                        <div yg-file-upload data-file-ids="car.vehicleLicenseImgUrl3" data-is-img="true"
                             data-width="200" data-height="200" data-file-length="1"
                             data-ng-click="showPic(car.vehicleLicenseImgUrl3)">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        交强险有效期：
                    </label>
                    <div class="col-md-8">
                        <input data-ng-model="car.tciEndTime" class="input-sm form-control" type="text"
                               data-jss-datetimepicker="yyyy-mm-dd hh:ii" placeholder="交强险有效期" pickerPosition="top-right"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        商业险有效期：
                    </label>
                    <div class="col-md-8">
                        <input data-ng-model="car.vciEndTime" class="input-sm form-control" type="text"
                               data-jss-datetimepicker="yyyy-mm-dd hh:ii" placeholder="商业险有效期" pickerPosition="top-right"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        交强险:
                    </label>
                    <div class="col-md-8">
                        <div yg-file-upload data-file-ids="car.tciImgUrl" data-is-img="true"
                             data-width="200" data-height="200" data-file-length="1"
                             data-ng-click="showPic(car.tciImgUrl)">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        保险卡:
                    </label>
                    <div class="col-md-8">
                        <div yg-file-upload data-file-ids="car.vciImgUrl" data-is-img="true"
                             data-width="200" data-height="200" data-file-length="1"
                             data-ng-click="showPic(car.vciImgUrl)">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        审核状态：
                    </label>
                    <div class="col-md-8">
                        <select class="form-control" data-ng-model="car.authorized"
                                data-ng-options="a.value as a.name for a in authorizedList">
                            <option value="" disabled>--请选择--</option>
                        </select>
                    </div>
                </div>
                <div class="form-group" data-ng-if="car.authorized == -1">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        理由：
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" data-ng-model="car.reason"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        过期状态：
                    </label>
                    <div class="col-md-8">
                        <span class="form-control" data-ng-if="car.expireState == 0">正常</span>
                        <span class="form-control" data-ng-if="car.expireState == 1">快过期</span>
                        <span class="form-control" data-ng-if="car.expireState == 2">已过期</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-3 control-label">
                        <span class="mustinput">*</span>
                        更新时间：
                    </label>
                    <div class="col-md-8">
                        <span class="form-control">{{car.updateTime | date:'yyyy-MM-dd HH:mm:ss' || ""}}</span>
                    </div>
                </div>
                <div style="clear:both"></div>
                <!-- 按钮 -->
                <div class="form-group text-right" style="margin-left: 15px; margin-right: 15px;">
                    <button type="button" class="btn btn-default" data-ng-click="close()">
                        <i class="i i-arrow"></i>
                        &nbsp;返回
                    </button>
                    <button type="submit" class="btn btn-success" data-ng-click="saveObj()">
                        <i class="fa fa-save"></i>
                        &nbsp;保存
                    </button>
                </div>
            </form>
        </div>
    </section>
</section>
